import { message,Modal} from "antd";
const Deletes = (props) => {
  const { isshow,setisshow } = props
  return (
    <Modal<{name: string; company: string; }>
      modalProps={ {
        onCancel:() => {setisshow(false)}
      } }
      onFinish={async (values) => {
        message.success('删除成功');
        return setisshow(false);
      }}
      visible={isshow}
      width='350px'
      title="删除"
    >
      <div>确定要删除吗？删除后将无法恢复，请谨慎操作！</div>
    </Modal>
  );
};

export default Deletes;
